<?php


namespace App\Model;


/**
 * App\Model\GoodsCollect
 *
 * @property int $id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property int $goods_id 商品id
 * @property int $user_id 用户id
 * @property-read \App\Model\Goods $goods
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\GoodsCollect whereUserId($value)
 * @mixin \Eloquent
 */
class GoodsCollect extends Base
{

    protected $table='goods_collect';

    protected $fillable=['goods_id','user_id'];


    function goods(){


        return $this->belongsTo(Goods::class,'goods_id','id');
    }

}
